home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q105 / 9 / 97.TXT < prev    next >
Text File  |  1993-11-16  |  3KB  |  83 lines

  1. DOCUMENT:Q105997  03-NOV-1993  [W_NT]
  2. TITLE   :Differences Between the HOSTS and LMHOSTS Files in Windows NT
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. ----------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12.  - Microsoft Windows NT Advanced Server version 3.1
  13. ----------------------------------------------------------------------
  14.  
  15. SUMMARY
  16. =======
  17.  
  18. In Windows NT, the HOSTS file is for TCP/IP utilities, and the LMHOSTS
  19. file is for LAN Manager NET utilities. If you cannot PING another
  20. computer (using a friendly name), check the HOSTS file. If you cannot
  21. NET VIEW a server using only the TCP/IP protocol, check the LMHOSTS
  22. file.
  23.  
  24. MORE INFORMATION
  25. ================
  26.  
  27. The HOSTS file is used when you do something with the TCP/IP
  28. utilities, such as PING, FTP, and TELNET. You can find the HOSTS file
  29. in the winnt\system32\drivers\etc directory. The format of the file is
  30. the following:
  31.  
  32.    IP Address     Friendly Name
  33.  
  34.    130.25.25.87   jsmith_nt   # Remarks are denoted with a #.
  35.  
  36. With an entry like this in the HOSTS file, you could PING jsmith
  37. instead of typing out the whole IP address (ping 130.25.25.87). This
  38. file is NOT dynamic, so you need to add entries manually.
  39.  
  40. The LMHOSTS file is for LAN Manager name resolution with the TCP/IP
  41. protocol. The file is similar in format to the HOSTS file, but its
  42. function is to resolve IP addresses for a server that is not on the
  43. local subnet (the same wire). So, if you type the following
  44.  
  45.    NET VIEW \\JSMITH_NT
  46.  
  47. and JSMITH_NT is on a different subnet, you will receive a "Server not
  48. Found" error message. If you are on a different subnet, edit your
  49. LMHOSTS file (in the same directory as the HOSTS file) to read as
  50. follows:
  51.  
  52.    IP Address     Friendly Name
  53.  
  54.    130.25.25.87   jsmith_nt
  55.  
  56. So when you type "NET VIEW \\JSMITH_NT" (without the quotation marks),
  57. the LMHOSTS file tells Windows NT to replace the "\\jsmith_nt" with
  58. the IP address to resolve where the server is.
  59.  
  60. For additional information on the LMHOSTS file in Windows NT, query on
  61. the following words in the Microsoft Knowledge Base:
  62.  
  63.    lmhosts and windows and nt
  64.  
  65. Additional reference words: 3.10
  66. KBCategory:
  67. KBSubcategory: tpip netsrv
  68.  
  69. =============================================================================
  70.  
  71. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  72. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  73. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  74. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  75. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  76. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  77. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  78. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  79. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  80. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  81. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  82.  
  83. Copyright Microsoft Corporation 1993.